package com.sakuracard.stepdemo.service;


import com.sakuracard.stepdemo.mapper.HomeContentMapper;
import com.sakuracard.stepdemo.model.HomeContentEntity;
import com.sakuracard.stepdemo.service.base.BaseService;
import com.sakuracard.stepdemo.web.model.ListResult;
import com.sakuracard.stepdemo.web.model.SearchParams;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
import java.util.Objects;

public interface HomePageContentService extends BaseService<HomeContentEntity> {
  ListResult<HomeContentEntity> getHomePageContentList(SearchParams params);

  HomeContentEntity getHomePageContent(int id);

  boolean updateHomePageContent(long id, HomeContentEntity homeContentEntity);

  boolean addHomePageContent(HomeContentEntity homeContentEntity);

  boolean updatePageContent(int id, String content);
}
